package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.Warehouse;

public interface WarehouseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Warehouse record);

    int insertSelective(Warehouse record);

    Warehouse selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Warehouse record);

    int updateByPrimaryKey(Warehouse record);

	List<Warehouse> listWarehouse(Map<String, Object> param);

	Integer queryIdByNameAndId(@Param("id")Integer id, @Param("warehouseName") String warehouseName);

	List<Warehouse> showWarehouseByPage(Map<String, Object> params);

	Integer queryIdByName(@Param("warehouseName") String warehouseName);

	int deleteByIds(@Param("ids") String[] idsArr);
}